package com.code.client;

import com.code.api.HelloFacade;
import com.code.client.proxy.RpcProxyClient;

/**
 * @author lyf
 * @date 2021-10-10 10:46
 */
public class App {

    public static void main(String[] args) {

        HelloFacade helloFacade = RpcProxyClient.clientProxy(HelloFacade.class, "localhost", 8080);
        String message = helloFacade.hello("java");
        System.out.println("客户端接收 消息: " + message);

    }
}
